home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-06-27 | 2.7 KB | 162 lines |
- #
- #
- # Makefile for
- #
- # $Id: makefile,v 1.4 1994/05/07 15:57:31 WBOW Exp $
- #
- # IMPORTANT: To create dependencies --> make depend
- #
- # Makefile for use with Aztec v5 and beyond. Uses 32-bit ints
- #
- # $Log: makefile,v $
- # Revision 1.4 1994/05/07 15:57:31 WBOW
- # Demo for colin
- #
- # Revision 1.3 1994/05/07 00:05:43 WBOW
- # Minor bug fix: added line - .PHONY: .depend
- #
- # Revision 1.2 1994/05/02 16:29:16 WBOW
- # Using precompiled headers now.
- #
- # Revision 1.1 1994/05/02 08:29:26 WBOW
- # Initial revision
- #
- #
-
- .PHONY: .depend flowchart
-
- .SUFFIXES: # Tell make to forget the suffixes it alreay knows
-
- .SUFFIXES: .c .o .h
-
- # Uncomment out this line if you want make to run quiet
- #.SILENT:
-
-
- GTXNAME = ups.gui
-
- CC = aztec:bin/c1
- AS = aztec:bin/as
- LD = aztec:bin/ln
-
- #
- # Set things up so we get .o files built correctly....
- # (must be configured for each user)
- #
-
- #
- # the usual stuff ..............
- #
-
- AOUT= UPSey
-
- PRE =
-
- CCMODE =
- CCOPTS = -wqs
- CFLAGS = -bs
- INCLUDES =
- AFLAGS =
- LFLAGS = -g
- LIBS = -l reqtools -lc
-
- #
- # Names of the directories where we find sources....
- #
- AMIGA =
-
- #
- # and objects....
- #
- LIBOBJ = +l amiga.lib
-
-
- #
- # List of source files
- #
- SRC_GUI = $(subst .gui,.c,$(GTXNAME)) $(subst .gui,_temp.c,$(GTXNAME))
-
- SRC1 = database.c handlegadgets.c handleprojectmenu.c
-
- SRC2 =
-
- SRCn =
-
- SRC = $(SRC_GUI) $(SRC1) $(SRC2) main.c
-
- #
- # List of object files
- #
- OBJ_GUI = $(subst .gui,.o,$(GTXNAME)) $(subst .gui,_temp.o,$(GTXNAME))
-
- OBJ1 = database.o handlegadgets.o handleprojectmenu.o
-
- OBJ2 =
-
- OBJn =
-
- OBJ = $(OBJ_GUI) $(OBJ1) $(OBJ2) main.o
-
-
- #
- # THE PROGRAM (AOUT)
- #
-
- $(AOUT) : init $(SRC_GUI) $(OBJ)
- $(LD) $(LFLAGS) -o $(AOUT) $(OBJ) $(LIBS) $(LIBOBJ)
-
- # Initilize compiler options
- #
- # Do environment variable initilizations here.
- #
- init:
- mset ccopts=$(CCOPTS)
-
- #
- #
- #
-
- $(subst .gui,.h,$(GTXNAME)) : $(GTXNAME)
- copy $@ $*.h^
- sed >$@ -f etc/FixGTX_h.sed $*.h^
-
- $(subst .gui,.c,$(GTXNAME)): $(GTXNAME)
- copy $@ $*.c^
- sed >$@ -f etc/FixGTX_c.sed $*.c^
-
- $(subst .gui,_temp.c,$(GTXNAME)): $(GTXNAME)
- copy $@ $*.c^
- sed >$@ -f etc/FixGTX_temp_c.sed $*.c^
-
- #
- # Generate prototypes
- #
- functions.h: $(SRC)
- mkproto >functions.h $(SRC)
-
- #
- #
- clean:
- -delete #?.o #?.[c|h]^
-
- clobber: clean
- -delete a.out
-
-
- #
- # Build the dependency list for the .h files used by all sources. We do
- # this in multiple passes so to avoid problems with the long command line
- # generate when you slap all the sources together.
- # Note that there are faster, but more environment-dependent, ways to do
- # turn the output of the makemake's into an lmkfile. We avoid those
- # on purpose.
- #
-
- .depend:
- makemake >.depend -M $(INCLUDES) $(SRC)
-
- # This is a bit of a hack for the benifit of GNU Make version 3.58.
- include .depend
-
- # File dependencies will be appended after this line by "make depend"
-